home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / deprecate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-03-23  |  3.9 KB  |  125 lines

  1. /*
  2.   Deprecated methods.
  3. */
  4. #ifndef _MAGICK_DEPRECATE_H
  5. #define _MAGICK_DEPRECATE_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. #include "magick/blob.h"
  12.  
  13. #if !defined(__attribute__)
  14. #  define __attribute__(x) /*nothing*/
  15. #endif
  16.  
  17. #define Downscale(quantum)  ScaleQuantumToChar(quantum)
  18. #define Intensity(color)  PixelIntensityToQuantum(color)
  19. #define LiberateUniqueFileResource(resource) \
  20.   RelinquishUniqueFileResource(resource)
  21. #define LiberateMagickResource(resource)  RelinquishMagickResource(resource)
  22. #define LiberateSemaphore(semaphore)  RelinquishSemaphore(semaphore)
  23. #define RunlengthEncodedCompression  RLECompression
  24. #define Upscale(value)  ScaleCharToQuantum(value)
  25. #define XDownscale(value)  ScaleShortToQuantum(value)
  26. #define XUpscale(quantum)  ScaleQuantumToShort(quantum)
  27.  
  28. typedef struct _DoublePixelPacket
  29. {
  30.   double
  31.     red,
  32.     green,
  33.     blue,
  34.     opacity,
  35.     index;
  36. } DoublePixelPacket;
  37.  
  38. #if !defined(__WINDOWS__)
  39. #if (SIZEOF_LONG_LONG == 8)
  40. typedef long long ExtendedSignedIntegralType;
  41. typedef unsigned long long ExtendedUnsignedIntegralType;
  42. #else
  43. typedef long ExtendedSignedIntegralType;
  44. typedef unsigned long ExtendedUnsignedIntegralType;
  45. #endif
  46. #else
  47. typedef __int64 ExtendedSignedIntegralType;
  48. typedef unsigned __int64 ExtendedUnsignedIntegralType;
  49. #endif
  50. #if defined(HAVE_LONG_DOUBLE)
  51. typedef long double ExtendedRationalType;
  52. #else
  53. typedef double ExtendedRationalType;
  54. #endif
  55.  
  56. extern MagickExport char
  57.   *AllocateString(const char *),
  58.   *PostscriptGeometry(const char *);
  59.  
  60. extern MagickExport MagickOffsetType
  61.   SizeBlob(const Image *image);
  62.  
  63. extern MagickExport Image
  64.   *GetImageList(const Image *,const long,ExceptionInfo *),
  65.   *GetNextImage(const Image *),
  66.   *GetPreviousImage(const Image *),
  67.   *PopImageList(Image **),
  68.   *ShiftImageList(Image **),
  69.   *SpliceImageList(Image *,const long,const unsigned long,const Image *,
  70.     ExceptionInfo *);
  71.  
  72. extern MagickExport long
  73.   GetImageListIndex(const Image *);
  74.  
  75. extern MagickExport IndexPacket
  76.   ValidateColormapIndex(Image *,const unsigned long);
  77.  
  78. extern MagickExport int
  79.   GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *),
  80.   ParseImageGeometry(const char *,long *,long *,unsigned long *,
  81.     unsigned long *);
  82.  
  83. extern MagickExport unsigned int
  84.   ChannelImage(Image *,const ChannelType),
  85.   ChannelThresholdImage(Image *,const char *),
  86.   DispatchImage(const Image *,const long,const long,const unsigned long,
  87.     const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
  88.   FuzzyColorMatch(const PixelPacket *,const PixelPacket *,const double),
  89.   GetNumberScenes(const Image *),
  90.   GetMagickGeometry(const char *,long *,long *,unsigned long *,unsigned long *),
  91.   IsSubimage(const char *,const unsigned int),
  92.   PushImageList(Image **,const Image *,ExceptionInfo *),
  93.   QuantizationError(Image *),
  94.   RandomChannelThresholdImage(Image *,const char *,const char *,
  95.     ExceptionInfo *),
  96.   SetImageList(Image **,const Image *,const long,ExceptionInfo *),
  97.   ThresholdImage(Image *,const double),
  98.   ThresholdImageChannel(Image *,const char *),
  99.   UnshiftImageList(Image **,const Image *,ExceptionInfo *);
  100.  
  101. extern MagickExport unsigned long
  102.   GetImageListSize(const Image *);
  103.  
  104. extern MagickExport void
  105.   *AcquireMemory(const size_t),
  106.   *CloneMemory(void *,const void *,const size_t),
  107.   DeleteImageFromList(Image **),
  108.   DestroyBlobInfo(BlobInfo *),
  109.   DestroyImages(Image *),
  110.   *GetConfigureBlob(const char *,char *,size_t *,ExceptionInfo *),
  111.   IdentityAffine(AffineMatrix *),
  112.   LiberateMemory(void **),
  113.   LiberateSemaphoreInfo(void **),
  114.   FormatString(char *,const char *,...) __attribute__((format (printf,2,3))),
  115.   ReacquireMemory(void **,const size_t),
  116.   SetCacheThreshold(const unsigned long),
  117.   Strip(char *),
  118.   TemporaryFilename(char *);
  119.  
  120. #if defined(__cplusplus) || defined(c_plusplus)
  121. }
  122. #endif
  123.  
  124. #endif
  125.